package com.xiaoxu.springCloudAccount.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.xiaoxu.account.entity.Resource;
import com.xiaoxu.common.vo.Result;
import com.xiaoxu.common.vo.Search;


public interface ResourceService {

	Result<Resource> insertResource(Resource resource);

	Result<Resource> updateResource(Resource resource);

	Result<Object> deleteResourceById(int id);
	
	Resource getResourceById(int id);
	
	List<Resource> getResourcesByRoleId(int roleId);
	
	PageInfo<com.xiaoxu.account.entity.Resource> getResourcesBySearchBean(Search search);
}
